﻿using BCEntity.TMS.LearningTrain.AllowedExaminationRecord;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace BCData.TMS.LearningTrain
{
    public interface IAllowedExaminationRecordData
    {
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="allowedExaminationRecordId"></param>
        /// <returns></returns>
        Task<bool> DeleteAsync(long allowedExaminationRecordId);
        /// <summary>
        /// 获取信息
        /// </summary>
        /// <param name="allowedExaminationRecordId"></param>
        /// <returns></returns>
        Task<AllowedExaminationRecordEntity> GetEntityAsync(long allowedExaminationRecordId);
        /// <summary>
        /// 获取列表
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        Task<(IEnumerable<AllowedExaminationRecordEntity>, int)> GetListAsync(int pageIndex, int pageSize);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<AllowedExaminationRecordEntity> InsertAsync(AllowedExaminationRecordEntity entity);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<AllowedExaminationRecordEntity> UpdateAsync(AllowedExaminationRecordEntity entity);
    }
}